/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.click.app.webapp.reportObjects;

import com.click.app.model.Material;
import com.click.app.model.Model;
import java.io.Serializable;

/**
 *
 * @author arnold
 */
public class PantDesignWithoutModelSize implements Serializable {

    private String id;
    private Material material;
    private Model model;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Material getMaterial() {
        return material;
    }

    public void setMaterial(Material material) {
        this.material = material;
    }

    public Model getModel() {
        return model;
    }

    public void setModel(Model model) {
        this.model = model;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PantDesignWithoutModelSize other = (PantDesignWithoutModelSize) obj;
        if ((this.id == null) ? (other.id != null) : !this.id.equals(other.id)) {
            return false;
        }
        if (this.material != other.material && (this.material == null || !this.material.equals(other.material))) {
            return false;
        }
        if (this.model != other.model && (this.model == null || !this.model.equals(other.model))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        return hash;
    }

    public String getDatasModelAndMaterial(){
       return model.getGender()+" - "+model.getType()+" - "+material.getFullName();
    }

}
